var express = require('express');
var router = express.Router();

/* GET users listing. */

router.get('/', function(req, res, next) {

	
	var password = req.query.password;
	var username = req.query.username;
	if(username !== '18612345678') {
		res.send({code: '1001', msg: 'username is not exist'});
	} else if(password !== '111111') {
		res.send({code: '1002', msg: 'password is not correct'});
	} else {
		res.send({code: '1000', msg: 'get in'});
	}
});


router.get('/:userId', function(req, res, next) {
  console.log(req.params.userId)
});

module.exports = router;
